﻿@model IEnumerable<Project_KhuyenMaiVang.Models.DoanhNghiepDTO>

@{
    ViewBag.Title = "QuanLyDoanhNghiep";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Quản Lý Doanh Nghiệp</h2>

<table id="myTable" border="1" class="display-content">
    <thead>
    <tr>
        <th>
            Tên Doanh Nghiệp
        </th>
        <th>
            Web
        </th>
        <th>
            Chi Tiết Liên Hệ
        </th>
        <th></th>
    </tr>
    </thead>
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.TenDoanhNghiep)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Web)
        </td>
        <td>
            @Html.ActionLink("Chi Tiết", "ChiTietLienHe", new {maLienHe = item.MaLienHe})
        </td>
        <td>
            @Html.ActionLink("Edit", "EditDoanhNghiep", new { id=item.IDAccount})
        </td>
    </tr>
}

</table>
<script src="../../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.tablesorter.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.tablesorter.pager.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#myTable").tablesorter();
        $("#myTable").hide();
        $("#myTable").toggle(500);
    }
); 
</script>
